﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace WebHacker
{
    public class HttpRequestDictionary : Dictionary<string, string>
    {

        public string ToString()
        {
            String res = "";
            Enumerator en = this.GetEnumerator();
            while (en.MoveNext())
            {
                res += HttpUtility.UrlEncode(en.Current.Key);
                res += "=";
                res += HttpUtility.UrlEncode(en.Current.Value);
                res += "&";
            }
            return res.Trim('&');
        }
    }
}
